package com.rd.student.jiaji.class4.suyan.zrrd.day15;

import java.util.ArrayList;

public class ArrayList1 {
    public static void main(String[] args) {
        ArrayList a=new ArrayList();
        byte b1=1;
        a.add(b1);
        int i1=1;
        a.add(i1);
        short s1=1;
        a.add(s1);
        double d1=1.0;
        a.add(d1);
        float f1=1.0f;
        a.add(f1);
        char c1='a';
        a.add(true);
        Student student=new Student("ke","ki");
        a.add(student);
        for (int i=0;i<a.size();i++){
            System.out.println(a.get(i));

        }
        Student student1=new Student("苏岩","加计");
        a.set(6,student1);
       a.remove(5);

        for (int i=0;i<a.size();i++){
            System.out.println(a.get(i));
        }

    }
}

